package com.yaolisheng.testMain;

import com.yaolisheng.DistCodeEnum;
import com.yaolisheng.utils.ListUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author : yaols
 * Desc:
 * Date: 2022.12.14.16:13
 **/
public class ForeachTest {
    public static void main(String[] args) {

       /* List<String> list = new ArrayList<>();
        for (int i = 0; i < 1056; i++) {
            list.add(i + "");
        }

        List<List<String>> lists = ListUtils.splitList(list, 100);
        System.out.println(lists.size());*/

        System.out.println(DistCodeEnum.NMGZZQSWJ.getName());
        System.out.println(DistCodeEnum.NMGZZQSWJ.getCode());
        String distName = DistCodeEnum.getDistName(DistCodeEnum.NMGZZQSWJ.getCode());
        System.out.println(distName);

    }
}
